<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <!--显示国际化信息  -->
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
java.util.Locale local=request.getLocale();
String text="";

if(local.equals(java.util.Locale.US)){
	text="欢迎来到美国!";
}
if(local.equals(java.util.Locale.CHINA)){
	text="欢迎来到中国";
}

%>
<%=text %>

</body>
</html>